/**
 * 
 */
package br.srv.full.virtual.faces.manager.userLogin;

import javax.annotation.PostConstruct;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import br.srv.full.faces.utils.FacesUtils; 

/**
 * @author Delfino
 * 
 */
public final class UUIDParamManager extends Object {

	private final Log log = LogFactory.getLog(getClass());

	private LoginManager loginManager;

	public LoginManager getLoginManager() {
		return loginManager;
	}

	public void setLoginManager(LoginManager loginManager) {
		log.info("Login Manager recebido");
		this.loginManager = loginManager;
	}

	@PostConstruct
	public void initialize() {
		log.info("Inicializado!");
	}

	/**
	 * @return the uuid
	 */
	public String getUuid() {
		return getLoginManager().getFirstFaseCode();
	}

	/**
	 * @param _uuid
	 *            the uuid to set
	 */
	public void setUuid(String _uuid) {
		log.info("UUID recebido: " + _uuid);
		getLoginManager().setFirstFaseCode(_uuid);
	}

}
